<?php
/**
 * 客服管理
 * User: long
 * Date: 2019/11/29
 * Time: 11:35
 */

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use EasyWeChat\Kernel\Messages\Text;

class KFController extends Controller
{
    public function __construct()
    {
        parent::__construct();
    }


    public function getList()
    {
        return $this->app->customer_service->list();
    }

    public function getOnlineList()
    {
        return $this->app->customer_service->online();
    }

    public function store()
    {
        return $this->app->customer_service->create('foo@test', '客服1');
    }

    public function invite()
    {
        return $this->app->customer_service->invite('foo@test2', 'o5Npcw-khTKlXZBjy64_lch-eHkg');
    }
}